<template>
	<view class="">
		<!-- 顶部自定义导航 -->
		<u-navbar :isBack="true" title="协议" title-color="#101010"
		:background="{background: '#fff'}" :borderBottom="false"></u-navbar>
		
		<view class="u-content" style="padding: 20rpx;">
			<u-parse :html="html"></u-parse>
		</view>
	</view>
</template>

<script>
	import {request} from 'utils/request.js'
	export default {
		data(){
			return {
				html: "加载中..."
			}
		},
		onLoad(e){
			if(e.type){
				let params = {
					type: e.type
				}
				request.get({
					url: '/basicinfo/agreement',
					data: params
				}).then(res=>{
					console.log('返回用户信息：', res);
					// return;
					if(res.code == 1){
						this.html = res.data.contenthtml
					}else{
						this.$refs.uToast.show({ title: res.msg });
					}
				})
			}
		},
		methods: {
		}
	}
</script>

